/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webanovare.bb;

import com.webanovare.model.GamesRegistry;
import java.beans.*;
import java.io.Serializable;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.inject.Named;

/**
 *
 * @author jarmju
 */
@ManagedBean(name = "highscores")
@SessionScoped
public class HighScoreBB implements Serializable {
    
    @EJB
    GamesRegistry gr;
    
    
    public List<Integer> getHighScores() {
        return gr.getHighScores();
    }
    
    public List<String> getTopPlayers() {
        return gr.getTopPlayers();
    }
    
}
